#!/bin/bash

bosh_app_dir=/var/vcap
bosh_dir=$bosh_app_dir/bosh
bosh_users_password="c1owdc0w"
infrastructure="vsphere"
SRC_DIR=`pwd`

if [ ! -d "$bosh_dir" ]; then
	# create bosh_dir and add to path
	mkdir -p $bosh_dir
	echo "PATH=$PATH:$bosh_dir/bin
export PATH
" >> /etc/profile

	echo "PATH=$PATH:$bosh_dir/bin
export PATH
" >> /root/.bash_profile

	export PATH=$PATH:$bosh_dir/bin
fi
<% if ENV['HTTP_PROXY'] || ENV['http_proxy'] %>
export HTTP_PROXY=<%= ENV['HTTP_PROXY'] || ENV['http_proxy'] %>
export http_proxy=<%= ENV['HTTP_PROXY'] || ENV['http_proxy'] %>
<% end %>

<% if ENV['HTTPS_PROXY'] || ENV['https_proxy'] %>
export HTTPS_PROXY=<%= ENV['HTTPS_PROXY'] || ENV['https_proxy'] %>
export https_proxy=<%= ENV['HTTPS_PROXY'] || ENV['https_proxy'] %>
<% end %>